#include "process.h"

void ProcessOn(){
  int cut = 0;
  char bar[NUM];
  memset(bar,'\0',sizeof(bar));
  const char* lable="|\\-/";

  while(cut<=100){
  printf("[%-100s][%d%%][%c]\r",bar,cut,lable[cut%4]);
  fflush(stdout);
  bar[cut++]=STYLE;
  //sleep(1); 
  usleep(50000);
  }
  printf("\n");
}
